<template>
  <div>
    我是儿子组件
    <br>
    父组件给我传递的值是: {{ id }}
  </div>
</template>

<script>
export default {
  name: 'Son',

  props: {
    id: {
      type: String,
      required: true
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
